package com.four.hospital.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.four.common.vo.UserTo;
import com.four.hospital.entity.User;
import com.four.hospital.vo.DoctorAndUserVo2;
import com.four.hospital.vo.UserVo;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:wsy
 * @Date: 2022/01/07/20:38
 * @Description
 */
public interface UserDao {

    /**
     * 患者管理列表、分页、精准
     *
     * @param vo
     * @param userPage
     * @return
     */
    IPage<User> userList(Page<User> userPage, @Param("vo") UserVo vo);

    /**
     * 患者管理详情查
     * @param userId
     * @return
     */
    DoctorAndUserVo2 findList(Integer userId);

    /**
     * 查看当前手机号的详情
     * @param userPhone
     * @return
     */
    UserTo getByPhone(String userPhone);

    /**
     * 根据手机号查询用户
     * @param userPhone
     * @return
     */
    User findUserByPhone(@Param("userPhone") String userPhone);
}
